/* eslint-disable no-unused-expressions */
import { defineStore } from 'pinia'

const useLoadingStore = defineStore('loading', {
  state: () => ({
    spinLoading: false,
  }),
  getters: {
    // 获取用户机构
    getSpinLoading(state) {
      return state.spinLoading
    },
  },
  actions: {
    setSpinLoading(falg: boolean) {
      this.spinLoading = falg
    },
  },
})

export default useLoadingStore
